package com.lzgcoding.onlineshopapp.room.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.lzgcoding.onlineshopapp.room.entity.BannerEntity

@Dao
interface BannerDao {
    @Query("SELECT * FROM Banner")
    suspend fun getAll(): List<BannerEntity>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    suspend fun insertAll(banners: List<BannerEntity>)
}